package net.xiangcaowuyu.example1.config;

import org.springframework.data.domain.AuditorAware;

import java.util.Optional;

/**
 * 博客：https://www.xiangcaowuyu.net
 * Description:
 *
 * @Author: 香草物语
 * DateTime: 2021-07-22 15:36
 */
public class MyAuditorAware implements AuditorAware<String> {
    /**
     * Returns the current auditor of the application.
     *
     * @return the current auditor.
     */
    @Override
    public Optional<String> getCurrentAuditor() {
        return Optional.of("测试用户");
    }
}
